package jgcp.master.scheduler;

import java.util.Comparator;

import jgcp.common.Task;
/**
 * 
 * @Date 29/05/2009
 * @author Jie Zhao (288654) Dongwei Qi
 * @version 1.0
 * First Come First Serve
 */
public class FCFS implements Comparator<Task> {
	/**
	 * First Come First Serve. The task which has lower task id is consider as came first.
	 */
	public int compare(Task o1, Task o2) {
		return o1.getTaskid() - o2.getTaskid();
	};
}
